import type { BannerItem } from "@/types/home"
import { http } from "@/utils/http"
// 获取轮播图列表
export const getHomeBannerAPI = (distributionSite = 1) => {
    return http<BannerItem[]>({
        method: 'GET',
        url: '/home/banner',
        data: {
            distributionSite
        }
    })
}
// 获取首页前台分类

export const getHomeCategoryAPI = () => {
    return http({
        method: 'GET',
        url: '/home/category/mutli',
        data: {}
    })
}
// 热门推荐
export const getHomepanelAPI = () => {
    return http({
        method: 'GET',
        url: '/home/hot/mutli',
    })
}